package com.ruoyi.settled.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 结算详情对象 settlement_detail
 * 
 * @author huangchen
 * @date 2025-01-05
 */
public class SettlementDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 明细ID
     */
    private Long detailId;

    /** 结算编码，外键（指向结算记录表） */
    private String settlementCode;

    /** 订单编码，外键（可以是采购订单、销售订单等） */
    private String orderCode;

    /**
     * 订单金额
     */
    private BigDecimal orderAmount;

    public void setSettlementCode(String settlementCode) 
    {
        this.settlementCode = settlementCode;
    }

    public String getSettlementCode() 
    {
        return settlementCode;
    }
    public void setOrderCode(String orderCode) 
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode() 
    {
        return orderCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("detailId", getDetailId())
            .append("settlementCode", getSettlementCode())
            .append("orderCode", getOrderCode())
            .append("orderAmount", getOrderAmount())
            .toString();
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Long getDetailId() {
        return detailId;
    }

    public void setDetailId(Long detailId) {
        this.detailId = detailId;
    }
}
